package light.head.dao.site;

import java.io.Serializable;

import light.head.framework.base.BaseDAO;
import light.head.model.CommodityDetail;

import org.springframework.stereotype.Service;

@Service
public class CommodityDetailDAO extends BaseDAO<CommodityDetail, Serializable> {
	private static final String sql_queryCommodityDetail = "FROM CommodityDetail cd WHERE cd.cc = ?";

	public CommodityDetail getByCode(Integer code) {
		return (CommodityDetail) super.get(sql_queryCommodityDetail, code);
	}
}
